package com.marvels.product.param.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptAmortMethodDTO;
import com.marvels.product.param.dto.McptProduct;

public interface AmortMethodService {
	
	public PageInfo<McptAmortMethodDTO> getPageInfoByParam(Map<String,Object> map) throws MarvelsBusinessException;
	
	
	public int insert(McptAmortMethodDTO dto) throws MarvelsBusinessException;
	
	
	public McptAmortMethodDTO getEntityByPrimaryKey(Long amortId) throws MarvelsBusinessException;


	public int updateByPrimaryKey(McptAmortMethodDTO dto) throws MarvelsBusinessException;


	public void updateStatus(McptAmortMethodDTO dto) throws MarvelsBusinessException;
	
	/**根据productCode查询还款计算方式
	 * @author 娄凯琦
	 * @date 2018年5月8日  
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptAmortMethodDTO getAmortMethodByAmortMethodCode(McptProduct dto)throws MarvelsBusinessException;
	/**
	 * 根据还款试算方法ID删除该条记录
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int delete(McptAmortMethodDTO dto)throws MarvelsBusinessException;
}
